home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Macintosh Tracker Source / Tracker Client Folder / CNumOutputBits.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-01  |  686 b   |  33 lines  |  [TEXT/KAHL]

  1. /* CNumOutputBits.c */
  2.  
  3. #include "CNumOutputBits.h"
  4. #include "CMyDocument.h"
  5. #include "LocationConstants.h"
  6. #include "CWindow.h"
  7. #include "CArray.h"
  8.  
  9.  
  10. void                CNumOutputBits::INumOutputBits(CMyDocument* TheDocument,
  11.                             CWindow* TheWindow)
  12.     {
  13.         LongPoint            LocalStart,LocalExtent;
  14.  
  15.         Document = TheDocument;
  16.         GetRect(NumOutputBitsID,&LocalStart,&LocalExtent);
  17.         ICheckbox(LocalStart,LocalExtent,GetCString(NumOutputBitsID),
  18.             0,0,applFont,9,TheWindow,TheWindow);
  19.     }
  20.  
  21.  
  22. MyBoolean        CNumOutputBits::DoThang(void)
  23.     {
  24.         MyBoolean            Result;
  25.  
  26.         Result = inherited::DoThang();
  27.         if (Document->UseSixteenBitMode != State)
  28.             {
  29.                 Document->SetNumOutputBits(State);
  30.             }
  31.         return Result;
  32.     }
  33.